<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_html常用值</title>
    <style>
        div {
            width: 120px;
            height: 120px;
            border: 1px solid black;
        }
        .d1 {
            background-color: rgba(0,0,255,1);
        }  
        .d2 {
            background-color: rgba(0,0,255,0.8);
        }  
        .d3 {
            background-color: rgba(0,0,255,0.6);
        }  
        .d4 {
            background-color: rgba(0,0,255,0.4);
        }  
        .d5 {
            background-color: rgba(0,0,255,0.1);
        }
        #dd {
            width: 520px;
            height: 520px;
            background-image: linear-gradient(120deg,green,blueviolet);
        }
       #viewport {
           width: 80vw;
           height: 80vh;
           background-color: #70ff58;
       }

    </style>
</head>
<body>
    <div id="viewport"></div>
    <div id="dd"></div>
    <h2>颜色测试</h2>
    <div class="d1"><span>1111</span></div>
    <div class="d2"><span>1111</span></div>
    <div class="d3"><span>1111</span></div>
    <div class="d4"><span>1111</span></div>
    <div class="d5"><span>1111</span></div>
</body>
</html>